import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { MsiteComponent } from './pages/msite/msite.component';
import { SearchComponent } from './pages/search/search.component';
import { OrderComponent } from './pages/order/order.component';
import { ProfileComponent } from './pages/profile/profile.component';
import { LoginComponent } from './components/login/login.component';

const routes: Routes = [
  {path: 'msite', component: MsiteComponent},
  {path: 'search', component: SearchComponent},
  {path: 'order', component: OrderComponent},
  {path: 'profile', component: ProfileComponent},
  {path: 'login', component: LoginComponent},
  {path: '', redirectTo: 'msite', pathMatch: 'full'}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
